import subprocess
import time

proc = subprocess.Popen(
    ['sleep', '2']
)
while proc.poll() is None:
    print('Wroking ...')
    time.sleep(0.2)
    
print('Exit status', proc.poll())
